<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="angularjs/angular.min.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="controller">
    <div id="mydom"></div>
</div>
<script>

    angular.module("myapp",[])
            .controller("controller", function ($scope,$compile) {
                $scope.name = "doramart.com";
                var htmltxt = "<span>{{name}}</span>";
                var dom = angular.element(htmltxt);
                var linkFn = $compile(dom);
                linkFn($scope);
                document.querySelector("#mydom").appendChild(dom[0]);
            })

</script>
</body>
</html>